package com.atguigu.service;

import com.atguigu.entity.Permission;
import com.base.BaseService;

import java.util.List;
import java.util.Map;

public interface PermissionService extends BaseService<Permission> {
    List<Map<String, Object>> findPermissionsByRoleId(Long roleId);

    void saveRolePermissionRealtionShip(Long roleId, Long[] permissionIds);

    //获取用户菜单权限
    List<Permission> findMenuPermissionByAdminId(Long adminId);
    //获取用户功能权限
    List<String> findCodeListByAdminId(Long adminId);
}
